{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "ExecuteTime": {
     "start_time": "2021-10-11T03:31:05.070Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "用户名称：ZH\n",
      "密码：007749\\\n",
      "密码错误，请重新输入\n",
      "请输入正确的账号：ZK\n",
      "请输入正确的密码：007749\n",
      "尊贵的会员，您今天还有 10 次输入的机会~\n"
     ]
    }
   ],
   "source": [
    "user_data = \"ZH\"\n",
    "user_password = \"007749\"\n",
    "user_name = input(\"用户名称：\")\n",
    "password = input(\"密码：\")\n",
    "\n",
    "if user_name == user_data:\n",
    "    if password == user_password:\n",
    "        print(\"欢迎登陆\")\n",
    "    else:\n",
    "        print(\"密码错误，请重新输入\")\n",
    "        user_name = input(\"请输入正确的账号：\")\n",
    "        password = input(\"请输入正确的密码：\")\n",
    "        if user_data == user_name:\n",
    "            if user_password == password:\n",
    "                print(\"欢迎登陆\", user_name)\n",
    "        count = 11\n",
    "        while True:\n",
    "            count -= 1\n",
    "            if count == 0:\n",
    "                print(\"尊贵的会员，您一天能输入10次哦～\")\n",
    "            else:\n",
    "                print(\"尊贵的会员，您今天还有\", count, \"次输入的机会~\")\n",
    "                week_time = int(input(\"今天星期几（请输入0-6的数字）：\"))\n",
    "\n",
    "\n",
    "print(\"课程表\")\n",
    "import datetime\n",
    "\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "print(week_time)\n",
    "if week_time == 1:\n",
    "    print(\"星期一有二节课\");\n",
    "    print(\"3-5python语言\");\n",
    "    print(\"10-11足球\")\n",
    "elif week_time == 2:\n",
    "    print(\"星期二有二节课\");\n",
    "    print(\"3-5广告学概论\");user_nameuser_name\n",
    "    print(\"10-11大英\")\n",
    "elif week_time == 3:\n",
    "    print(\"星期三有两节课\");\n",
    "    print(\"4-5毛概实践\");\n",
    "    print(\"12-14毛概\")\n",
    "elif week_time == 4:\n",
    "    print(\"星期四有两节课\");\n",
    "    print(\"8-10创业基础实践\");\n",
    "    print(\"12-13大英\")\n",
    "elif week_time == 5:\n",
    "    print(\"星期五有两节课\");\n",
    "    print(\"3-5网站运营与管理\");\n",
    "    print(\"8-9手绘\")\n",
    "elif week_time == 0:\n",
    "    print(\"周六、周日\");\n",
    "    print(\"放松\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
